-INSTALLATION INSTRUCTIONS-
1. Extract the .RAR

2. Copy the following folders into %CoD4Dir%/raw (where %CoD4Dir% is the location of your Call of Duty 4 installation) or %BO1Dir%/raw (where %BO1Dir% is the location of your Call of Duty: Black Ops installation)
- material_properties
- materials
- xanim
- xmodel
- xmodelparts
- xmodelsurfs

3. Create a new mod or open your existing mod's folder in %CoD4Dir%/mods or %BO1Dir%/mods

4. Paste 'images' and 'weapons' into your mod's folder

5. Open up the mod.csv file in your mod's folder and add the line in the provided mod.csv. Here is where the methods change depending on your game. Locate the section for your game and read those instructions ONLY!

[====COD 4/5====]
6a. Ensure your MakeMod.bat has entries for all the folders you wish to build. If you are not sure, create a new text document and paste the following into it:

del z_<RENAME_ME>.iwd
del mod.ff

xcopy ui_mp ..\..\raw\ui_mp /SY
xcopy ui_mp\scriptmenus ..\..\raw\ui_mp\scriptmenus /SY
xcopy images ..\..\raw\images /SY
xcopy weapons ..\..\raw\weapons /SY
xcopy maps ..\..\raw\maps /SY

copy /Y mod.csv ..\..\zone_source
cd ..\..\bin
linker_pc.exe -language english -compress -cleanup mod
cd ..\mods\<CHANGE TO YOUR MOD FOLDER>
copy ..\..\zone\english\mod.ff

7za a -r -tzip z_<RENAME_ME>.iwd weapons
7za a -r -tzip z_<RENAME_ME>.iwd images
7za a -r -tzip z_<RENAME_ME>.iwd ui_mp
7za a -r -tzip z_<RENAME_ME>.iwd ui_mp\scriptmenus
7za a -r -tzip z_<RENAME_ME>.iwd maps

pause

...then save it as MakeMod.bat, making sure to fill in your mod folder's name and all the z_<RENAME_ME>'s to anything you want. (e.g. z_karambit, z_sky, z_customguns etc...)

6a.5 If you are building this on top of an existing mod, go to Tom-Bmx's site, download a .ff unpacker and unpack the existing mod.ff, copying all its contents into your folder's
    root directory. If you do this, make doubly sure that your MakeMod.bat has all the necessary 'xcopy' lines to compensate.

7a. If you had MakeMod.bat already, you should already have 7za.exe in your mod folder as well. If not, go to mods/ModWarfare and copy it over.

8a. Run MakeMod.bat until it reaches 'Everything is OK.'. Do NOT close the console window just yet. Make sure that there are no lines saying '0 files copied', or any lines
   of red text. If there are not, you are free to close the window. You are done installing the weapon!

   If, however, you are not lucky and you see '0 files copied', or lines of red text somewhere in the console window, do not worry! Read what the error is (it will most likely
   be that it could not find a directory) and fix it! It is quite straightforward, but if you need extra help add me on Skype (azsryedits).

   If you see red text, most of the time it is not something you have to worry about, but if it is there will most likely be a reason given alongside the error to help you
   fix it.
[====COD 4/5====]

[====BO1====]
6b. Go to Launcher.exe in %BO1Dir%/bin

7b. Make sure the weapon file is checked in the right tree-view

8b. Check 'Link Fast File' and 'Build IWD' and then click Build Mod

9b. Go in game and type '/give <mod.csv weapon name>' to give yourself the weapon!
	e.g. if mod.csv has 'weapon,mp/karambit_knife_mp', you would have to type '/give karambit_knife_mp' to load the weapon

	P.S. Barata's console may be required to set 'sv_cheats' to 1 to allow custom weapon loading 
[====BO1====]


Credits:
Azsry - Tutorial
Infinity Ward - Original weapon and animation files
Treyarch - Original weapon and animation files
elfenliedtopfan5 - Help on porting weapons
Tom-Bmx - Porting original weapon and animation files for certain weapons, and for creating the tools necessary to port weapons